package com.brillilab.service.core.instrument;

import com.brillilab.domain.po.instrument.Instrument;
import com.brillilab.domain.po.instrument.InstrumentAppointment;
import com.brillilab.domain.po.instrument.InstrumentMaintenance;

import java.text.ParseException;
import java.util.List;

/**
 * <p>
 * 仪器维护 服务类
 * </p>
 *
 * @author WuMenghao
 * @since 2019-06-12
 */
public interface IInstrumentMaintenanceService{

    List<InstrumentMaintenance> selectList(Long instrumentId);

    int deleteByInstrumentId(Long instrumId);

    /**
     * 判断预约是否与维护时间重合
     * @param appointment
     * @param year
     * @param month
     * @param date
     * @param dayOfWeek
     * @param maintenance
     * @return
     */
    boolean compareMaintenanceWhitAppointment(InstrumentAppointment appointment,int year,int month,int date,int dayOfWeek,
                                              InstrumentMaintenance maintenance);

    int insert(InstrumentMaintenance maintenance);

    InstrumentMaintenance selectById(Long id);

    boolean deleteById(Long id);
}
